import { get, post } from '@/uitls/axios';


// 认证
export const memberCertificationFnAPi = (data: any) => {
  return new Promise((resolve, reject) => {
    post('/apis/member/memberCertification', data)
      .then((response) => {
        resolve(response);
      })
      .catch((error) => {
        reject(error);
      });
  });
};

//查询是否认证
export const queryMemberCertificationFnAPi = () => {
  return new Promise((resolve, reject) => {
    get('/apis/member/getCertificationStatus')
     .then((response) => {
        resolve(response);
      })
     .catch((error) => {
        reject(error);
      });
  });
};